package com.dycx.common.context;

import lombok.experimental.UtilityClass;

@UtilityClass
public class UserInfoContext {

	private static final ThreadLocal<UserInfo> TL = ThreadLocal.withInitial(UserInfo::new);

	public static UserInfo get() {
		return TL.get();
	}

	public static void set(UserInfo label) {
		TL.set(label);
	}

	public static void remove() {
		TL.remove();
	}
}
